using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class SceneManager : MonoBehaviour
{
    [SerializeField]
    private Animator mAnimator; 
    // Start is called before the first frame update
    void Start()
    {
        
    }

    // Update is called once per frame
    void Update()
    {
        if (Input.GetKey(KeyCode.D))
        {
            if (mAnimator.GetBool("isBuff"))
            {
                mAnimator.SetBool("isBuff", false);
            }
            mAnimator.SetBool("isRun",true);
        }
        if (Input.GetKey(KeyCode.S))
        {
            mAnimator.SetBool("isRun",false);
        }
        if (Input.GetKey(KeyCode.A))
        {
            if (mAnimator.GetBool("isRun"))
            {
                mAnimator.SetBool("isRun",false);
            }
            mAnimator.SetBool("isBuff",true);
        }
        
    }
}
